/*
 * ChildPhoneGapForm.h
 *
 *  Created on: 2011. 4. 14.
 *      Author: JeeHoon
 */

#ifndef CHILDPHONEGAPFORM_H_
#define CHILDPHONEGAPFORM_H_

#include "PhoneGapForm.h"

class ChildBrowser;

class ChildPhoneGapForm:
public PhoneGapForm,
public Osp::Ui::IActionEventListener
{
private:
	ChildPhoneGapForm();
public:
	ChildPhoneGapForm(ChildBrowser * pChildBrowser);
	virtual ~ChildPhoneGapForm();

	virtual result OnInitializing(void);

	virtual void OnActionPerformed (const Osp::Ui::Control &source, int actionId);

	virtual bool  OnLoadingRequested (const Osp::Base::String &url, Osp::Web::Controls::WebNavigationType type);
	void  OnLoadingCompleted (void);

	void OnLocationChange(Osp::Base::String url);
	void OnClose();
	//?????
	void OnOpenExternal();

private:
	ChildBrowser * __pChildBrowser;
};

#endif /* CHILDPHONEGAPFORM_H_ */
